package com.example.common.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Data
@Entity
@Table(name = "im_consultation_log")
public class ConsultationLog implements Serializable {

    private static final long serialVersionUID = -7490646539054104154L;
    @Id
    @Column(name = "id_bigint", columnDefinition = "bigint(20)")
    private Long id;
    @Column(name = "oc_id_bigint", columnDefinition = "bigint(20)")
    private Long ocId;
    @Column(name = "im_type_tinyint", columnDefinition = "tinyint(1) comment '1：患者To医生,2：医生To患者'")
    private Integer imType;
    @Column(name = "from_hx_nvarchar", columnDefinition = "varchar(255)")
    private String fromHx;
    @Column(name = "to_hx_nvarchar", columnDefinition = "varchar(255)")
    private String toHx;
    @Column(name = "create_time_datetime", columnDefinition = "datetime(3)")
    private Date createTime;
    @Column(name = "im_content_nvarchar", columnDefinition = "text")
    private String imContent;
    @Column(name = "have_read_bit", columnDefinition = "tinyint(1)")
    private Boolean haveRead;
    @Column(name = "c_type_tinyint", columnDefinition = "tinyint(1) comment '1.文本消息,2.图片消息,3.电子处方,4.图文问诊,5.语音,6.发起随访,7.回答随访,8.结束问诊提示,9.接诊,10.视频,11.音频'")
    private Integer cType;
    @Column(name = "d_type_tinyint", columnDefinition = "tinyint(1) comment '1=中医,2=西医'")
    private Integer dType;
    @Column(name = "rx_Order_no_nvarchar", columnDefinition = "varchar(255) comment '订单号'")
    private String rxOrderNo;
}
